package com.bayern.entity;

/**
 * LRU缓存对象
 * @author linling
 *
 */
public class LRUObject<K, V> extends CacheObject<K, V>
{

	//前一个元素
	private LRUObject<K, V> prev;
	
	//后一个元素
	private LRUObject<K, V> next;
	
	public LRUObject(Entry<K, V> entry)
	{
		super(entry);
	}
	
	@Override
	public int compareTo(CacheObject<K, V> o)
	{
		return 0;
	}

	public LRUObject<K, V> getPrev()
	{
		return prev;
	}

	public void setPrev(LRUObject<K, V> prev)
	{
		this.prev = prev;
	}

	public LRUObject<K, V> getNext()
	{
		return next;
	}

	public void setNext(LRUObject<K, V> next)
	{
		this.next = next;
	}

}
